package jsyf.oa.entity.wreport;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author: @张巨波 @zhangjubo
 * @creat: on 2017/11/28.
 * @since: V1.0.0
 * @see jsyf.oa.web
 */
@Entity
@Table(name = "T_WRT_GATHER", schema = "oa", catalog = "")
public class WReportGatherEntity  implements Serializable {
    private String id;
    private String wId;
    private String customerName;
    private String gatherType;
    private Double money;
    private String bank;
    private String remark;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getwId() {
        return wId;
    }

    public void setwId(String wId) {
        this.wId = wId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getGatherType() {
        return gatherType;
    }

    public void setGatherType(String gatherType) {
        this.gatherType = gatherType;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public JSONObject getJSONObject(){
        JSONObject obj = new JSONObject();

        obj.put("id",getId());
        obj.put("w_id",getwId());
        obj.put("customer_name",getCustomerName());
        obj.put("gather_type",getGatherType());
        obj.put("money",getMoney());
        obj.put("bank",getBank());
        obj.put("remark", getRemark());
        return  obj;
    }
}
